<!-- index.html -->
<!DOCTYPE html>
<html>
<body>
<button type="button" onclick="htmlTest()">Click Me!!!!!</button>
<p id="txt">本地测试html页面</p>
<p id="demo1"></p>
<p id="demo"></p>

<script>
    function htmlTest() {
        document.getElementById("demo1").innerHTML = "客户端调用web 方法 success!";
        console.info('JavaScript call success! ');
        callArkTS()
    }
    function callArkTS() {
       let param = {action:"callCamera",
            params:{url:"123"},
            success:function success(res){
                document.getElementById("demo").innerHTML = res;
            },
            fail:function fail(res){
                document.getElementById("demo").innerHTML = res;
            },
        }
        let str = window.bankJsBridge.call(JSON.stringify(param));
        document.getElementById("demo").innerHTML = str
    }
</script>
</body>
<style>
    body {
        height:2000px;
    }
</style>
</html>